home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-03-19 | 3.6 KB | 177 lines | [TEXT/ttxt] |
- * SPRINTMAIL Script, for QuickMail™
- * © 1988-92 CE Software, Inc.
- *
- * Title: SprintMail.SPRINTNET.v2.03
- * Version: 2.03
- * Modification Date: 3/13/92
- *
- * NOTE: The filename of this script does not accurately reflect the version
- * number of the script. It was not updated due to the complications it would cause
- * in the QuickMail v2.5.1 update process. This problem will be corrected in a future
- * version of QuickMail.
- *
- * Modification History:
- * • 2.01 - 4/11/89: Formating and Name Changes. Tested OK.
- * • 2.02b- 3/21/90: Added XMODEM file transfer - Dave Reed.
- * • 2.02 - 5/3/90: Name changes. Tested OK.
- * • 2.03 - 3/13/92: Added support for 7,1,EVEN and XON/XOFF
- * This will help on large text transfers.
- * To properly configure the Sprint Mail MailCenter, your
- * connection settings should be:
- * 8 DataBits, 1 Stop Bit, No Parity, Handshake:None
- * File Transfer: XMODEM, MacBinary, CRC-16
- * The service itself is 7,1,EVEN XON/XOFF.
- * The current XMODEM Tool only supports 8, 1 & None for File Transfers.
- *
- * This is a simple script for logging onto US Sprint's mail system
- * It assumes that you are calling directly into SPRINTMAIL
- *
- * THIS SCRIPT ONLY WORKS WHEN CALLING IN THROUGH SPRINTNET
- *
- *
- * This is called to log us into SPRINTNET and then into
- * SPRINTMAIL.
- *
- :IN
- COMM DataBits 7 Parity Even StopBits 1 Handshake Xon/Xoff
- OOPS 180,FAILURE
- ALERT 1,FAILURE,NO CARRIER
- ALERT 2,FAILURE,DISCONNECTED
- ALERT 3,FAILURE,REJECTING
- ALERT 4,FAILURE,OPERATING
- ALERT 5,FAILURE,ERROR
- ALERT 6,FAILURE,REACHABLE
- ALERT 7,FAILURE,MAIL BUSY
- *
- * remove the following line for a 1200 baud connection
- TYPE @
- *
- * remove the comment * for on the following line for 1200 baud connection
- *TYPE ^M
- PAUSE 1
- TYPE ^M
- WAIT TERMINAL=
- TYPE D1^M
- WAIT @
- TYPE MAIL^M
- WAIT User name?
- TYPE «LOGID»^M
- WAIT Password?
- TYPE «PASSWORD»^M
- WAIT COMMAND?
- ALERT 3,,
- ALERT 4,,
- ALERT 5,,
- ALERT 6,,
- ALERT 7,,
- SUCCESS
- *
- * This logs us off SPRINTMAIL
- *
- :BYE
- TYPE Bye^M
- ALERT 6,SUCCESS,NO CARRIER
- ALERT 7,B2,ACTION?
- ALERT 8,B3,WORKSPACE?
- :B1
- PAUSE 5
- SUCCESS
- :B2
- TYPE ^M
- GOTO B1
- :B3
- TYPE Y^M
- GOTO B1
- *
- * This is called to send one piece of mail
- *
- :SEND
- OOPS 180,FAILURE
- TYPE Compose^M
- WAIT TO:
- TYPE «ADDRESS»^M
- WAIT CC:
- TYPE ^M
- WAIT SUBJECT:
- TYPE «TOPIC»^M
- WAIT TEXT:
- TYPE Attn: «NAME»^M
- DUMP ^J
- TYPE .^M
- ALERT 7,S1,EXIST:
- WAIT SEND?
- TYPE Y^M
- :S0
- ALERT 7,S1,EXIST:
- WAIT COMMAND?
- SUCCESS
- :S1
- TYPE O^M
- ERRORINADDRESS
- GOTO S0
- *
- * This routine sends a binary file if there is more than one file it will
- * be packed together as a "Packit One" file.
- *
- :XSEND
- COMM DataBits 8 Parity None StopBits 1 Handshake None
- OOPS 180,FAILURE
- ALERT 1,FAILURE,Invalid file name
- ALERT 2,FAILURE,Invalid UPLOAD
- ALERT 3,FAILURE,File Transfer failed:
- ALERT 4,FAILURE,Invalid PROTOCOL TYPE
- PAUSE 2
- TYPE COMPOSE BINARY^M
- WAIT TO:
- TYPE «ADDRESS»^M
- WAIT CC:
- TYPE ^M
- WAIT Subject:
- TYPE «TOPIC»^M
- PAUSE 2
- TYPE QMAIL.BIN^M
- PAUSE 3
- XFER UPLOAD,FAILURE
- WAIT SEND?
- TYPE Y^M
- SUCCESS
- *
- *
- * This is called to receive mail. It is called continually with increasing
- * values in «COUNT», until FAILURE occurs. You can put all reads into one
- * listing, if you wish
- *
- :RECEIVE
- COMM DataBits 7 Parity Even StopBits 1 Handshake Xon/Xoff
- OOPS 180,FAILURE
- ALERT 6,R10,no new mail.
- TYPE scan^M
- :R0
- ALERT 7,R4,more...
- WAIT Command?
- ALERT 8,R10,Command?
- ALERT 11,R11,Use the DOWNLOAD BINARY command to receive it.
- ALERT 12,R11,This is a binary file:
- TYPE READ^M
- :R2
- BUFFER Action?
- RECEIVE Subj:,To:,From:,,
- TYPE ^M
- GOTO R2
- :R4
- TYPE ^M
- GOTO R0
- :R10
- FAILURE
- :R11
- COMM DataBits 8 Parity None StopBits 1 Handshake None
- PAUSE 3
- TYPE DOWNLOAD BINARY USING XMODEM.CRC^M
- PAUSE 5
- XFER DOWNLOAD,R12
- MAILFILE Subj:,To:,From:,,
- :R12
- TYPE ^M
- GOTO R2
-
-